import { useLocation } from "react-router-dom";
import { LibAppView } from "../../../lib";

export const useCurrentPage = () => {
    const location = useLocation();
    const app = LibAppView.useApp();
    return app.getPageByPath(location.pathname);
};